package com.scalar.chiptrack.operations.dataentry.inventory.actioncommands;

import com.scalar.chiptrack.actioncommands.ActionCommand;

/**
 * Created by IntelliJ IDEA.
 * User: Sudhakar
 * Date: Sep 24, 2006
 * Time: 12:12:30 AM
 */
public class InventoryDataEntryActionCommandFactory
{

    private InventoryDataEntryActionCommandFactory()
    {
    }

    public static ActionCommand getActionCommand(String action)
    {
        if (action == null || "processTypes".equalsIgnoreCase(action))
        {
            return new InventoryDataEntryLoadProcessTypesCommand();
        }
        else if ("partNumbers".equalsIgnoreCase(action))
        {
            return new InventoryDataEntryLoadPartNumbersCommand();
        }
        else if ("locations".equalsIgnoreCase(action))
        {
            return new InventoryDataEntryLoadLocationsCommand();
        }
        else if ("fabLotNumbers".equalsIgnoreCase(action))
        {
            return new InventoryDataEntryLoadFabLotNumbersCommand();
        }
        else if ("lotNumbers".equalsIgnoreCase(action))
        {
            return new InventoryDataEntrylLoadLotNumbersCommand();
        }
        else if ("loadLotInfo".equalsIgnoreCase(action))
        {
            return new InventoryDataEntryLoadLotDetailsCommand();
        }
        else if ("save".equalsIgnoreCase(action))
        {
            return new InventoryDataEntrySaveCommand();
        }

        return null;
    }
}
